package com.dataSructure.list.linked.doubleLinked;

public class DoubleLinkedNode {

    public int id ;
    public String name;
    public String nickname;
    public DoubleLinkedNode next; // 指向下一个节点, 默认为null
    public DoubleLinkedNode pre; // 指向前一个节点, 默认为null

    public DoubleLinkedNode(int id, String name, String nickname) {
        this.id = id;
        this.name = name;
        this.nickname = nickname;
    }

    @Override
    public String toString() {
        return "doubleLinkedNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
